package com.gitee.dupe.authority.controller;

import com.gitee.dolt.annotation.security.PreAuth;
import com.gitee.dolt.boot.controller.SuperCacheController;
import com.gitee.dolt.boot.controller.SuperController;
import com.gitee.dupe.authority.entity.Org;
import com.gitee.dupe.authority.service.IOrgService;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author LYH
 * @since 2020-06-30
 */
@RestController
@RequestMapping("/b/org")
@Validated
@Api(value = "Org", tags = "组织架构")
@RequiredArgsConstructor
@PreAuth(replace = "b:org:")
public class OrgController extends SuperCacheController<Org, IOrgService, Long, Org, Org, Org> {

    @Override
    public boolean enableQuery() {
        return true;
    }
}
